package org.edu.controller;

import javax.annotation.Resource;

import org.edu.bean.Employedtaxform;
import org.edu.service.EmployedtaxformService;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class EmployedtaxformController extends ActionSupport {
	
private Employedtaxform entity;
@Resource
private EmployedtaxformService employedtaxformservice;



public Employedtaxform getEntity() {
	return entity;
}



public void setEntity(Employedtaxform entity) {
	this.entity = entity;
}



public EmployedtaxformService getEmployedtaxformservice() {
	return employedtaxformservice;
}



public void setEmployedtaxformservice(
		EmployedtaxformService employedtaxformservice) {
	this.employedtaxformservice = employedtaxformservice;
}



@Override
public String execute() throws Exception {
	try {
		System.out.println(entity.getEtf_idnumber());
		System.out.println(entity+"_----------------");
		employedtaxformservice.save(entity);
	} catch (Exception e) {
		e.printStackTrace();
	}		
	return "success";
}
public String input() throws Exception {
	try{
	employedtaxformservice.save(entity);
	}catch(Exception e){
		e.printStackTrace();
	}
	return "input";
}
}
